package com.pj.hellomvvm.ui.fragment

import android.os.Bundle
import android.view.View
import com.pj.common.annotation.LayoutParam
import com.pj.common.base.BaseViewModel
import com.pj.common.base.topbar.BaseTopbarRecyclerFragment
import com.pj.hellomvvm.R
import com.pj.hellomvvm.manager.DataManager
import com.pj.hellomvvm.ui.adapter.TitleIconAdapter
import dagger.hilt.android.AndroidEntryPoint
import javax.inject.Inject

@AndroidEntryPoint
@LayoutParam(title = R.string.tab_app_ui)
class AppUIFragment : BaseTopbarRecyclerFragment<BaseViewModel>() {

    @Inject
    lateinit var dataManager: DataManager
    @Inject
    lateinit var mAdapter:TitleIconAdapter

    override fun initData(view: View, savedInstanceState: Bundle?) {
        super.initData(view, savedInstanceState)
        dataManager.widgetItemData
//        mRecyclerview.layoutManager = GridLayoutManager(requireContext(), 3)
//        mAdapter.setList(dataManager.widgetItemData)
//        mRecyclerview.adapter = mAdapter
    }
}